# 冒泡排序
def bubble_sort(my_list):
    for j in range(len(my_list) - 1, 0, -1):
        for i in range(j):
            if my_list[i] > my_list[i + 1]:
                my_list[i], my_list[i + 1] = my_list[i + 1], my_list[i]


li = [54, 26, 93, 17, 77, 31, 44, 55, 20, 20]
print(li)
bubble_sort(li)

print(li)
